package com.chat.simplechat.event;

import com.chat.simplechat.entity.LoginUser;
import com.chat.simplechat.websocket.SpringWebSocket;
import lombok.Getter;
import org.springframework.context.ApplicationEvent;


/**
 * 用户上线事件
 * @author wangyabin
 * @date 2022/11/2 9:56
 */
@Getter
public class UserGoOnlineEvent extends ApplicationEvent {
    
    private LoginUser loginUser; 
    
    public UserGoOnlineEvent(Object source,LoginUser user) {
        super(source);
        this.loginUser = user;
    }
}
